from django.db import models

# Create your models here.
class banner(models.Model):
    image = models.ImageField(upload_to='media/banner/')
    url = models.CharField(max_length=255)
    title = models.CharField(max_length=255,null=True,blank=True)
    def __str__(self):
        return self.url
    class Meta:
        verbose_name = '轮播图'
        verbose_name_plural = '轮播图'